package com.itheima.boottlias.mapper;

import com.github.pagehelper.Page;
import com.itheima.boottlias.domain.pojo.Clazz;
import com.itheima.boottlias.domain.query.QueryParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ghy
 * @version 1.0
 * @since 2025-07-14 12:20
 */
@Mapper
public interface ClazzMapper {
    Page<Clazz> findByCondition(QueryParam queryParam);

    List<Clazz> findAll();

    Clazz findById(Integer id);

    void deleteById(Integer id);

    void insert(Clazz clazz);

    void updateById(Clazz clazz);
}
